package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统登录日志表
 * </p>
 *
 * @author WEN
 * @since 2023-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjSystemLoginLog对象", description="系统登录日志表")
public class ZjSystemLoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "登录账号ID")
    private Long accountId;

    @ApiModelProperty(value = "登录账号")
    private String account;

    @ApiModelProperty(value = "登录用户名")
    private String name;

    @ApiModelProperty(value = "登录设备：1-pc登录，2-移动端网点登录，3-仓库移动端登录")
    private Integer device;

    @ApiModelProperty(value = "登录方式")
    private String mode;

    @ApiModelProperty(value = "浏览器录设备")
    private String browserDevice;

    @ApiModelProperty(value = "登录IP")
    private String ip;

    @ApiModelProperty(value = "是否登录成功：0-否，1-是")
    @TableField("is_success")
    private Boolean success;

    @ApiModelProperty(value = "消息")
    private String message;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(exist = false)
    private Long rowNo;


}
